<?php

/** 
 * @author Administrator
 * 
 * 
 */
include_once "../db/db_msgnotice.php";
include_once S_ROOT."./data/data_smsapi.php";
class act_msgnotice {
	private $db;
	function __construct() {
		$db = new db_msgnotice();
	}
	
	public function sendmsg()
	{
		if(isset($smsapiarr))
		{
			foreach($msgs = $db->get_sendmsg() as $key=>$val)
			{
				// 判断用户是不是在线，在线用站内通知，不在用短信
				
				// 发送后从表里删除
				$db->del_sendmsg($val['id']);
			}
		}
		
	}
	
}

?>